#bash
./delete_war.sh

echo delete all finish 
mkdir /usr/local/yyyc_java_source
cd /usr/local/yyyc_java_source/
git pull origin master
mvn package
cd target


scp *.war root@47.94.219.203:${CATALINA_HOME}/webapps
scp *.war root@47.94.213.156:${CATALINA_HOME}/webapps
scp *.war root@47.93.249.81:${CATALINA_HOME}/webapps

#ssh 47.94.219.203 "${CATALINA_HOME}/bin/./startup.sh"
#ssh 47.94.213.156 "${CATALINA_HOME}/bin/./startup.sh"
#ssh 47.93.249.81 "${CATALINA_HOME}/bin/./startup.sh"
